package cn.stronglink.asset.module.alarm.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.Alarm;
import cn.stronglink.asset.model.AlarmType;
import cn.stronglink.asset.module.alarm.vo.AlarmVo;

public interface AlarmMapper {

	List<AlarmType> getTypes();

	List<AlarmVo> getAlarmByParams(Pagination page, Map<String, Object> params);

	void updageAlarmResult(Map<String, Object> params);

	String getAlarmResultById(Long params);

	int qryAlarmCount();

	void insertAlarm(Alarm alarm);

	void alarmCancel(Long id);

	List<Map<String, Object>> getAlarm(String roomCode);

	AlarmVo qryById(Long id);

	AlarmType getAlarmType(String type);

	void insertAlarmType(AlarmType at);

	Alarm getAlarm(String assetId, Long id);

	Alarm getAlarmByRfid(@Param("rfidNo") String rfidNo, @Param("typeId") Long id);

	int qryAlarmCountByRackId(String rackId);

	void updateAlarm(Alarm a);

	List<Map<String, Object>> getAlarm3d(@Param("roomCode") String roomCode);

	Alarm getAlarmByAssetId(@Param("assetId")  String valueOf, @Param("typeId") Long id);

}
